<?php

// Composer: "fzaninotto/faker": "v1.3.0"
use Faker\Factory as Faker;

class PointTableSeeder extends Seeder {

	public function run()
	{
		$faker = Faker::create();

		foreach(range(1, 10) as $index)
		{
			Point::create([
                'customer_id'   => $faker->randomNumber(1),
                'action'    => $faker->sentence($nbWords = 5),
                'points' => rand(1,2000),
                'type' => rand(0,1),
			]);
		}
	}

}